package com.geovis.emergency.spd.entity.pc.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 应急预案指挥模块-演练表保存DTO
 * </p>
 *
 * @author 曾德实
 * @since 2022-04-30
 */
@Getter
@Setter
@ToString(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "PcDrillSaveDTO", description = "应急预案指挥模块-演练表保存DTO")
public class PcDrillSaveDTO implements Serializable {

//    @ApiModelProperty(value = "排班表文件id", required = true)
//    @NotNull(message = "排班表文件不能为空")
//    private String fileId;

    @ApiModelProperty(value = "名称", required = true)
    @NotEmpty(message = "名称不能为空")
    private String name;

    @ApiModelProperty(value = "内容", required = true)
    private String content;

    @ApiModelProperty("计划开始时间")
    @NotNull(message = "演练时间 不能为空")
    private LocalDateTime planStartTime;

    @ApiModelProperty("计划结束时间")
    private LocalDateTime planEndTime;

    @ApiModelProperty("经度")
    private String longitude;

    @ApiModelProperty("纬度")
    private String latitude;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("文件ID列表")
    private List<String> fileIdList;

    @ApiModelProperty("演练原则")
    private String rules;

    @ApiModelProperty("演练目的")
    private String goal;

    @ApiModelProperty(value = "演练类型")
    @NotEmpty(message = "演练类型不能为空")
    private String drillType;

    @ApiModelProperty(value = "主事件id,启动应急指挥需要传")
    private String eventId;
}
